package com.exam.mapper;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.exam.pojo.Score;
import com.exam.vo.AnswerVO;
import org.apache.ibatis.annotations.Select;

public interface AnswerMapper {
    @Select("select subject,question,score,section,level, \"选择题\" as type from multi_question"+
            " union select subject,question,score,section,level, \"判断题\" as type from judge_question"+
            " union select subject,question,score,section,level, \"填空题\" as type from fill_question")
    IPage<AnswerVO> findAll(Page page);


   int addScores(Score score);
}
